import { Module } from '@nestjs/common';
import { NoticeService } from './notice.service';
import { NoticeController } from './notice.controller';
import { JwtModule } from '@nestjs/jwt';
import { TypeOrmModule } from '@nestjs/typeorm';
import { jwtConstants, signOptions } from 'src/common/auth/constants';
import { NoticeEntity } from 'src/modules/admin/notice/entities/notice.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([NoticeEntity]),
    JwtModule.register({
      secret: jwtConstants.secret,
      signOptions,
    }),
  ],
  controllers: [NoticeController],
  providers: [NoticeService]
})
export class NoticeModule { }
